home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-09-06 | 10.5 KB | 867 lines | [TEXT/CWIE] |
- // DDocData.cp -- data container class for Everything
-
- #include "AMEngine.h"
- #include "PString.h"
- #include "DDocData.h"
-
-
- //----------
- DDocData::DDocData ()
- {
- mStandard = false;
- mXx = false;
- mLR = false;
- mLR2 = false;
- mLR3 = false;
- mLR4 = false;
- mCheckbox = false;
- mCheckbox2 = false;
- mNext = false;
- mNext2 = false;
- mRadioGroup = 0;
- mGroup = 0;
- mGraphic = 0;
- mBevel = 0;
- mText = 0;
- AssignPStr (mSmall, "\pSmall");
- AssignPStr (mLarge, "\pLarge");
- mX12345 = 12345;
- mX12345e6 = 123.45e6;
- AssignPStr (mPassword, "\pPassword");
- mDate.od.eraAlt = 0;
- ::GetTime (&mDate.od.oldDate);
- mTime.od.eraAlt = 0;
- ::GetTime (&mTime.od.oldDate);
- AssignPStr (mStyled, "\p");
- mBars = 1;
- mStandard2 = 5;
- mGraphic2 = 5;
- mSlider = 5;
- mTickMarks = 5;
- mNonDirectional = 5;
- mLittleArrows = 0;
- mSpinner = 5;
- mVolumeControl = 5;
- mJimSSlider = 5;
- mStandard3 = 5;
- mIndeterminate = 0;
- mChasingArrows = 0;
- mRectangle = 5;
- mRoundRect = 5;
- mBarberPole = 0;
- mRoundBarber = 0;
- mTools = 0;
- mFromValuesList2 = 0;
- mFromMenu = 0;
- mTextList = 0;
- }
-
- //----------
- DDocData::~DDocData ()
- {
- }
-
- //----------
- void DDocData::ReadFromFile (
- AMEngine* engine)
- {
- }
-
- //----------
- void DDocData::WriteToFile (
- AMEngine* engine)
- {
- }
-
-
- //----------
- Boolean DDocData::GetStandard () const
- {
-
- return mStandard;
- }
-
- //----------
- void DDocData::SetStandard (
- Boolean inValue)
- {
- mStandard = inValue;
-
- SignalDataChanged (idStandard);
- }
-
-
- //----------
- Boolean DDocData::GetXx () const
- {
-
- return mXx;
- }
-
- //----------
- void DDocData::SetXx (
- Boolean inValue)
- {
- mXx = inValue;
-
- SignalDataChanged (idXx);
- }
-
-
- //----------
- Boolean DDocData::GetLR () const
- {
-
- return mLR;
- }
-
- //----------
- void DDocData::SetLR (
- Boolean inValue)
- {
- mLR = inValue;
-
- SignalDataChanged (idLR);
- }
-
-
- //----------
- Boolean DDocData::GetLR2 () const
- {
-
- return mLR2;
- }
-
- //----------
- void DDocData::SetLR2 (
- Boolean inValue)
- {
- mLR2 = inValue;
-
- SignalDataChanged (idLR2);
- }
-
-
- //----------
- Boolean DDocData::GetLR3 () const
- {
-
- return mLR3;
- }
-
- //----------
- void DDocData::SetLR3 (
- Boolean inValue)
- {
- mLR3 = inValue;
-
- SignalDataChanged (idLR3);
- }
-
-
- //----------
- Boolean DDocData::GetLR4 () const
- {
-
- return mLR4;
- }
-
- //----------
- void DDocData::SetLR4 (
- Boolean inValue)
- {
- mLR4 = inValue;
-
- SignalDataChanged (idLR4);
- }
-
-
- //----------
- Boolean DDocData::GetCheckbox () const
- {
-
- return mCheckbox;
- }
-
- //----------
- void DDocData::SetCheckbox (
- Boolean inValue)
- {
- mCheckbox = inValue;
-
- SignalDataChanged (idCheckbox);
- }
-
-
- //----------
- Boolean DDocData::GetCheckbox2 () const
- {
-
- return mCheckbox2;
- }
-
- //----------
- void DDocData::SetCheckbox2 (
- Boolean inValue)
- {
- mCheckbox2 = inValue;
-
- SignalDataChanged (idCheckbox2);
- }
-
-
- //----------
- Boolean DDocData::GetNext () const
- {
-
- return mNext;
- }
-
- //----------
- void DDocData::SetNext (
- Boolean inValue)
- {
- mNext = inValue;
-
- SignalDataChanged (idNext);
- }
-
-
- //----------
- Boolean DDocData::GetNext2 () const
- {
-
- return mNext2;
- }
-
- //----------
- void DDocData::SetNext2 (
- Boolean inValue)
- {
- mNext2 = inValue;
-
- SignalDataChanged (idNext2);
- }
-
-
- //----------
- SInt16 DDocData::GetRadioGroup () const
- {
-
- return mRadioGroup;
- }
-
- //----------
- void DDocData::SetRadioGroup (
- SInt16 inValue)
- {
- mRadioGroup = inValue;
-
- SignalDataChanged (idRadioGroup);
- }
-
-
- //----------
- SInt16 DDocData::GetGroup () const
- {
-
- return mGroup;
- }
-
- //----------
- void DDocData::SetGroup (
- SInt16 inValue)
- {
- mGroup = inValue;
-
- SignalDataChanged (idGroup);
- }
-
-
- //----------
- SInt16 DDocData::GetGraphic () const
- {
-
- return mGraphic;
- }
-
- //----------
- void DDocData::SetGraphic (
- SInt16 inValue)
- {
- mGraphic = inValue;
-
- SignalDataChanged (idGraphic);
- }
-
-
- //----------
- SInt16 DDocData::GetBevel () const
- {
-
- return mBevel;
- }
-
- //----------
- void DDocData::SetBevel (
- SInt16 inValue)
- {
- mBevel = inValue;
-
- SignalDataChanged (idBevel);
- }
-
-
- //----------
- SInt16 DDocData::GetText () const
- {
-
- return mText;
- }
-
- //----------
- void DDocData::SetText (
- SInt16 inValue)
- {
- mText = inValue;
-
- SignalDataChanged (idText);
- }
-
-
- //----------
- StringPtr DDocData::GetSmall (
- Str255 outPtr) const
- {
-
- AssignPStr (outPtr, mSmall);
- return (StringPtr)mSmall;
- }
-
- //----------
- void DDocData::SetSmall (
- Str255 inValue)
- {
- AssignPStr (mSmall, inValue);
-
- SignalDataChanged (idSmall);
- }
-
- //----------
- void DDocData::SetSmall (
- CharsHandle inValue)
- {
- AssignPStr (mSmall, inValue);
-
- SignalDataChanged (idSmall);
- }
-
-
- //----------
- StringPtr DDocData::GetLarge (
- Str255 outPtr) const
- {
-
- AssignPStr (outPtr, mLarge);
- return (StringPtr)mLarge;
- }
-
- //----------
- void DDocData::SetLarge (
- Str255 inValue)
- {
- AssignPStr (mLarge, inValue);
-
- SignalDataChanged (idLarge);
- }
-
- //----------
- void DDocData::SetLarge (
- CharsHandle inValue)
- {
- AssignPStr (mLarge, inValue);
-
- SignalDataChanged (idLarge);
- }
-
-
- //----------
- SInt32 DDocData::GetX12345 () const
- {
-
- return mX12345;
- }
-
- //----------
- void DDocData::SetX12345 (
- SInt32 inValue)
- {
- mX12345 = inValue;
-
- SignalDataChanged (idX12345);
- }
-
-
- //----------
- double DDocData::GetX12345e6 () const
- {
-
- return mX12345e6;
- }
-
- //----------
- void DDocData::SetX12345e6 (
- double inValue)
- {
- mX12345e6 = inValue;
-
- SignalDataChanged (idX12345e6);
- }
-
-
- //----------
- StringPtr DDocData::GetPassword (
- Str255 outPtr) const
- {
-
- AssignPStr (outPtr, mPassword);
- return (StringPtr)mPassword;
- }
-
- //----------
- void DDocData::SetPassword (
- Str255 inValue)
- {
- AssignPStr (mPassword, inValue);
-
- SignalDataChanged (idPassword);
- }
-
- //----------
- void DDocData::SetPassword (
- CharsHandle inValue)
- {
- AssignPStr (mPassword, inValue);
-
- SignalDataChanged (idPassword);
- }
-
-
- //----------
- LongDateRec DDocData::GetDate () const
- {
-
- return mDate;
- }
-
- //----------
- void DDocData::SetDate (
- LongDateRec inValue)
- {
- mDate = inValue;
-
- SignalDataChanged (idDate);
- }
-
-
- //----------
- LongDateRec DDocData::GetTime () const
- {
-
- return mTime;
- }
-
- //----------
- void DDocData::SetTime (
- LongDateRec inValue)
- {
- mTime = inValue;
-
- SignalDataChanged (idTime);
- }
-
-
- //----------
- StringPtr DDocData::GetStyled (
- Str255 outPtr) const
- {
-
- AssignPStr (outPtr, mStyled);
- return (StringPtr)mStyled;
- }
-
- //----------
- void DDocData::SetStyled (
- Str255 inValue)
- {
- AssignPStr (mStyled, inValue);
-
- SignalDataChanged (idStyled);
- }
-
- //----------
- void DDocData::SetStyled (
- CharsHandle inValue)
- {
- AssignPStr (mStyled, inValue);
-
- SignalDataChanged (idStyled);
- }
-
-
- //----------
- UInt16 DDocData::GetBars () const
- {
-
- return mBars;
- }
-
- //----------
- void DDocData::SetBars (
- UInt16 inValue)
- {
- mBars = inValue;
-
- SignalDataChanged (idBars);
- }
-
-
- //----------
- SInt16 DDocData::GetStandard2 () const
- {
-
- return mStandard2;
- }
-
- //----------
- void DDocData::SetStandard2 (
- SInt16 inValue)
- {
- mStandard2 = inValue;
-
- SignalDataChanged (idStandard2);
- }
-
-
- //----------
- SInt16 DDocData::GetGraphic2 () const
- {
-
- return mGraphic2;
- }
-
- //----------
- void DDocData::SetGraphic2 (
- SInt16 inValue)
- {
- mGraphic2 = inValue;
-
- SignalDataChanged (idGraphic2);
- }
-
-
- //----------
- SInt16 DDocData::GetSlider () const
- {
-
- return mSlider;
- }
-
- //----------
- void DDocData::SetSlider (
- SInt16 inValue)
- {
- mSlider = inValue;
-
- SignalDataChanged (idSlider);
- }
-
-
- //----------
- SInt16 DDocData::GetTickMarks () const
- {
-
- return mTickMarks;
- }
-
- //----------
- void DDocData::SetTickMarks (
- SInt16 inValue)
- {
- mTickMarks = inValue;
-
- SignalDataChanged (idTickMarks);
- }
-
-
- //----------
- SInt16 DDocData::GetNonDirectional () const
- {
-
- return mNonDirectional;
- }
-
- //----------
- void DDocData::SetNonDirectional (
- SInt16 inValue)
- {
- mNonDirectional = inValue;
-
- SignalDataChanged (idNonDirectional);
- }
-
-
- //----------
- SInt16 DDocData::GetLittleArrows () const
- {
-
- return mLittleArrows;
- }
-
- //----------
- void DDocData::SetLittleArrows (
- SInt16 inValue)
- {
- mLittleArrows = inValue;
-
- SignalDataChanged (idLittleArrows);
- }
-
-
- //----------
- SInt16 DDocData::GetSpinner () const
- {
-
- return mSpinner;
- }
-
- //----------
- void DDocData::SetSpinner (
- SInt16 inValue)
- {
- mSpinner = inValue;
-
- SignalDataChanged (idSpinner);
- }
-
-
- //----------
- SInt16 DDocData::GetVolumeControl () const
- {
-
- return mVolumeControl;
- }
-
- //----------
- void DDocData::SetVolumeControl (
- SInt16 inValue)
- {
- mVolumeControl = inValue;
-
- SignalDataChanged (idVolumeControl);
- }
-
-
- //----------
- SInt16 DDocData::GetJimSSlider () const
- {
-
- return mJimSSlider;
- }
-
- //----------
- void DDocData::SetJimSSlider (
- SInt16 inValue)
- {
- mJimSSlider = inValue;
-
- SignalDataChanged (idJimSSlider);
- }
-
-
- //----------
- SInt16 DDocData::GetStandard3 () const
- {
-
- return mStandard3;
- }
-
- //----------
- void DDocData::SetStandard3 (
- SInt16 inValue)
- {
- mStandard3 = inValue;
-
- SignalDataChanged (idStandard3);
- }
-
-
- //----------
- SInt16 DDocData::GetIndeterminate () const
- {
-
- return mIndeterminate;
- }
-
- //----------
- void DDocData::SetIndeterminate (
- SInt16 inValue)
- {
- mIndeterminate = inValue;
-
- SignalDataChanged (idIndeterminate);
- }
-
-
- //----------
- SInt16 DDocData::GetChasingArrows () const
- {
-
- return mChasingArrows;
- }
-
- //----------
- void DDocData::SetChasingArrows (
- SInt16 inValue)
- {
- mChasingArrows = inValue;
-
- SignalDataChanged (idChasingArrows);
- }
-
-
- //----------
- SInt16 DDocData::GetRectangle () const
- {
-
- return mRectangle;
- }
-
- //----------
- void DDocData::SetRectangle (
- SInt16 inValue)
- {
- mRectangle = inValue;
-
- SignalDataChanged (idRectangle);
- }
-
-
- //----------
- SInt16 DDocData::GetRoundRect () const
- {
-
- return mRoundRect;
- }
-
- //----------
- void DDocData::SetRoundRect (
- SInt16 inValue)
- {
- mRoundRect = inValue;
-
- SignalDataChanged (idRoundRect);
- }
-
-
- //----------
- SInt16 DDocData::GetBarberPole () const
- {
-
- return mBarberPole;
- }
-
- //----------
- void DDocData::SetBarberPole (
- SInt16 inValue)
- {
- mBarberPole = inValue;
-
- SignalDataChanged (idBarberPole);
- }
-
-
- //----------
- SInt16 DDocData::GetRoundBarber () const
- {
-
- return mRoundBarber;
- }
-
- //----------
- void DDocData::SetRoundBarber (
- SInt16 inValue)
- {
- mRoundBarber = inValue;
-
- SignalDataChanged (idRoundBarber);
- }
-
-
- //----------
- SInt16 DDocData::GetTools () const
- {
-
- return mTools;
- }
-
- //----------
- void DDocData::SetTools (
- SInt16 inValue)
- {
- mTools = inValue;
-
- SignalDataChanged (idTools);
- }
-
-
- //----------
- SInt16 DDocData::GetFromValuesList2 () const
- {
-
- return mFromValuesList2;
- }
-
- //----------
- void DDocData::SetFromValuesList2 (
- SInt16 inValue)
- {
- mFromValuesList2 = inValue;
-
- SignalDataChanged (idFromValuesList2);
- }
-
-
- //----------
- SInt16 DDocData::GetFromMenu () const
- {
-
- return mFromMenu;
- }
-
- //----------
- void DDocData::SetFromMenu (
- SInt16 inValue)
- {
- mFromMenu = inValue;
-
- SignalDataChanged (idFromMenu);
- }
-
-
- //----------
- SInt16 DDocData::GetTextList () const
- {
-
- return mTextList;
- }
-
- //----------
- void DDocData::SetTextList (
- SInt16 inValue)
- {
- mTextList = inValue;
-
- SignalDataChanged (idTextList);
- }
-